﻿namespace EasyWeb
{
    using System.Collections.Generic;

    public class EWFieldDefinitionCollection : EWCollection<EWFieldDefinition>
    {
        public EWFieldDefinitionCollection(EWEntityDefinition owner)
        {
            EWGuard.IsNotNull(owner, "owner");

            this.Owner = owner;
        }

        public EWFieldDefinitionCollection(EWEntityDefinition owner, IEnumerable<EWFieldDefinition> collection)
            : base(collection)
        {
            EWGuard.IsNotNull(owner, "owner");

            this.Owner = owner;
        }

        public EWEntityDefinition Owner { get; private set; }
    }
}
